
export default{
    routes:[
        {
            path:'/home',
            component:require('./components/Home.vue'),
            children: [
                { path: '/login', component: require('./components/login/Login.vue') },
                { path: '/register', component: require('./components/login/Register.vue') }
            ]
        },
        {
            path:'/news',
            component:require('./components/News.vue'),
            children: [
                { path: '/detail', component: require('./components/Detail.vue') }
            ]
        },
        {
            path:'/button',
            component: require('./components/form/Button.vue'),
            children: [
                { path: '/detail', component: require('./components/Detail.vue') }
            ]
        },
        {
            path:'/input',
            component: require('./components/form/Input.vue'),
            children: [
                { path: '/detail', component: require('./components/Detail.vue') }
            ]
        },
        {
            path:'/select',
            component: require('./components/form/Select.vue'),
            children: [
                { path: '/detail', component: require('./components/Detail.vue') }
            ]
        },
        {
            path:'/form',
            component:require('./components/Form.vue'),
            children: [
                { path: 'button', component: require('./components/form/Button.vue') }
            ]
        },
        {path:'*', redirect:'/form'},
    ]
}
